package com.dahouzi.admin;

import javax.annotation.security.PermitAll;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dahouzi.service.TArticleService;

/**
 * Created by gl on 2017/9/13.
 */
@Controller
@PermitAll
@RequestMapping("/adminCtrl")
public class AdminCtrl {
	@Autowired
	private TArticleService tArticleService;

	@RequestMapping("")
	public String index() {
		return "table/hometown/index";
	}

	@RequestMapping("/")
	public String index_() {
		return "table/hometown/index";
	}
	@RequestMapping("/login")
	public String login() {
		return "table/admin/login/login";
	}

	@RequestMapping("/loginout")
	public String loginout() {
		return "table/admin/login/loginOut";
	}

}
